<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><title>ACS_Filters - NewAC</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.4 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="ACS_Filters"></a>ACS_Filters</h1><div class=CBody><p>Classes which run filters on audio data.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#ACS_Filters" >ACS_Filters</a></td><td class=SDescription>Classes which run filters on audio data.</td></tr><tr class="SClass"><td class=SEntry><a href="#TSincFilter" >TSincFilter</a></td><td class=SDescription>This component implements a windowed-sinc filter. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#TSincFilter.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#TSincFilter.GetKernel" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">GetKernel</a></td><td class=SDescription>Returns the pointer to the current filter kernel. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#TSincFilter.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#TSincFilter.FilterType" >FilterType</a></td><td class=SDescription>Use this property to set the desired filter type: low-pass, high-pass, band-pass, band-reject, or all-pass.</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#TSincFilter.HighFreq" >HighFreq</a></td><td class=SDescription>Use this property to set the high cut-off frequency. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#TSincFilter.KernelWidth" >KernelWidth</a></td><td class=SDescription>Use this property to set the number of points in the filter kernel.</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#TSincFilter.LowFreq" >LowFreq</a></td><td class=SDescription>Use this property to set the low cut-off frequency. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#TSincFilter.WindowType" >WindowType</a></td><td class=SDescription>Use this property to set the type of the window applied to the filter kernel.</td></tr><tr class="SClass"><td class=SEntry><a href="#TChebyshevFilter" >TChebyshevFilter</a></td><td class=SDescription>This component implements Chebyshev or  Butterworth filters (see the description below). </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#TChebyshevFilter.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#TChebyshevFilter.FilterType" >FilterType</a></td><td class=SDescription>Use this property to set the desired filter type: low-pass, high-pass, band-pass, or band-reject Curretnly only low-pass and high-pass filters are stable.</td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#TChebyshevFilter.NumberOfPoles" >NumberOfPoles</a></td><td class=SDescription>Use this property to set the number of poles for the filter. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#TChebyshevFilter.HighFreq" >HighFreq</a></td><td class=SDescription>Use this property to set the high cut-off frequency. </td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#TChebyshevFilter.LowFreq" >LowFreq</a></td><td class=SDescription>Use this property to set the low cut-off frequency. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#TChebyshevFilter.Ripple" >Ripple</a></td><td class=SDescription></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="TSincFilter"></a>TSincFilter</h2><div class=CBody><p>This component implements a windowed-sinc filter.&nbsp; The filter can work in low-pass, high-pass, band-pass, band-reject, or all-pass mode.&nbsp; A descendant of <a href="ACS_Classes-pas.html#TAuConverter" class=LClass id=link3 onMouseOver="ShowTip(event, 'tt2', 'link3')" onMouseOut="HideTip('tt2')">TAuConverter</a>.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#TSincFilter.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#TSincFilter.GetKernel" id=link2 onMouseOver="ShowTip(event, 'tt1', 'link2')" onMouseOut="HideTip('tt1')">GetKernel</a></td><td class=SDescription>Returns the pointer to the current filter kernel. </td></tr><tr class="SGroup"><td class=SEntry><a href="#TSincFilter.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent1 SMarked"><td class=SEntry><a href="#TSincFilter.FilterType" >FilterType</a></td><td class=SDescription>Use this property to set the desired filter type: low-pass, high-pass, band-pass, band-reject, or all-pass.</td></tr><tr class="SProperty SIndent1"><td class=SEntry><a href="#TSincFilter.HighFreq" >HighFreq</a></td><td class=SDescription>Use this property to set the high cut-off frequency. </td></tr><tr class="SProperty SIndent1 SMarked"><td class=SEntry><a href="#TSincFilter.KernelWidth" >KernelWidth</a></td><td class=SDescription>Use this property to set the number of points in the filter kernel.</td></tr><tr class="SProperty SIndent1"><td class=SEntry><a href="#TSincFilter.LowFreq" >LowFreq</a></td><td class=SDescription>Use this property to set the low cut-off frequency. </td></tr><tr class="SProperty SIndent1 SMarked"><td class=SEntry><a href="#TSincFilter.WindowType" >WindowType</a></td><td class=SDescription>Use this property to set the type of the window applied to the filter kernel.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.GetKernel"></a>GetKernel</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>procedure GetKernel(</td><td class=PParameter nowrap>var K :</td><td class=PType nowrap>&nbsp;PSingleArray</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the pointer to the current filter kernel.&nbsp; May return nil.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.Properties"></a>Properties</h3></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.FilterType"></a>FilterType</h3><div class=CBody><p>Use this property to set the desired filter type: low-pass, high-pass, band-pass, band-reject, or all-pass.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.HighFreq"></a>HighFreq</h3><div class=CBody><p>Use this property to set the high cut-off frequency.&nbsp; This property applies to high-pass, band-pass, and band-reject filters.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.KernelWidth"></a>KernelWidth</h3><div class=CBody><p>Use this property to set the number of points in the filter kernel.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.LowFreq"></a>LowFreq</h3><div class=CBody><p>Use this property to set the low cut-off frequency.&nbsp; This property applies to low-pass, band-pass, and band-reject filters.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TSincFilter.WindowType"></a>WindowType</h3><div class=CBody><p>Use this property to set the type of the window applied to the filter kernel.</p></div></div></div>

<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="TChebyshevFilter"></a>TChebyshevFilter</h2><div class=CBody><p>This component implements Chebyshev or  Butterworth filters (see the description below).&nbsp; A descendant of <a href="ACS_Classes-pas.html#TAuConverter" class=LClass id=link4 onMouseOver="ShowTip(event, 'tt2', 'link4')" onMouseOut="HideTip('tt2')">TAuConverter</a>.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#TChebyshevFilter.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent1 SMarked"><td class=SEntry><a href="#TChebyshevFilter.FilterType" >FilterType</a></td><td class=SDescription>Use this property to set the desired filter type: low-pass, high-pass, band-pass, or band-reject Curretnly only low-pass and high-pass filters are stable.</td></tr><tr class="SProperty SIndent1"><td class=SEntry><a href="#TChebyshevFilter.NumberOfPoles" >NumberOfPoles</a></td><td class=SDescription>Use this property to set the number of poles for the filter. </td></tr><tr class="SProperty SIndent1 SMarked"><td class=SEntry><a href="#TChebyshevFilter.HighFreq" >HighFreq</a></td><td class=SDescription>Use this property to set the high cut-off frequency. </td></tr><tr class="SProperty SIndent1"><td class=SEntry><a href="#TChebyshevFilter.LowFreq" >LowFreq</a></td><td class=SDescription>Use this property to set the low cut-off frequency. </td></tr><tr class="SProperty SIndent1 SMarked"><td class=SEntry><a href="#TChebyshevFilter.Ripple" >Ripple</a></td><td class=SDescription></td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="TChebyshevFilter.Properties"></a>Properties</h3></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TChebyshevFilter.FilterType"></a>FilterType</h3><div class=CBody><p>Use this property to set the desired filter type: low-pass, high-pass, band-pass, or band-reject Curretnly only low-pass and high-pass filters are stable.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TChebyshevFilter.NumberOfPoles"></a>NumberOfPoles</h3><div class=CBody><p>Use this property to set the number of poles for the filter.&nbsp; Allowed values are 2, 4, 6 ...&nbsp; 16.&nbsp; Note that filters with high number of poles may become unstable in which case their operation results in floating pointoverflow.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TChebyshevFilter.HighFreq"></a>HighFreq</h3><div class=CBody><p>Use this property to set the high cut-off frequency.&nbsp; This property applies to high-pass, band-pass, and band-reject filters.&nbsp; The value of this property should not be greater than the half of the samping rate.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TChebyshevFilter.LowFreq"></a>LowFreq</h3><div class=CBody><p>Use this property to set the low cut-off frequency.&nbsp; This property applies to low-pass, band-pass, and band-reject filters.&nbsp; The value of this property should not be greater than the half of the samping rate.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="TChebyshevFilter.Ripple"></a>Ripple</h3><div class=CBody><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Use this property to set the band-pass ripple.&nbsp; The reasonable values for Chebyshev filters are are 0.3</td><td class=CDLDescription>0.5.&nbsp; If you set this property to zero the filter&rsquo;s response becomes that of Butterworth filter.</td></tr></table></div></div></div>

</div><!--Content-->


<div id=Footer>Content &copy; 2008-2010 Andrei Borovsky. Design &copy; 2008 Wayne Thursby. <b><u><a href="http://symmetrica.net/newac">Go to the project's main page</a></u></b>&nbsp; &middot;&nbsp; <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MTitle>NewAC<div class=MSubTitle>v2.6.1</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Documentation</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="../doc/txt/introduction-txt.html">Quick Introduction to NewAC</a></div></div><div class=MEntry><div class=MFile><a href="../doc/txt/about_documentation-txt.html">About the Documentation</a></div></div><div class=MEntry><div class=MFile><a href="../doc/txt/cwguide-txt.html">Component Writer&rsquo;s Guide</a></div></div><div class=MEntry><div class=MFile><a href="../doc/txt/license-txt.html">License</a></div></div><div class=MEntry><div class=MFile><a href="../doc/txt/tips_and_tricks-txt.html">Tips &amp; Tricks</a></div></div><div class=MEntry><div class=MFile><a href="../doc/txt/newac-txt.html">About New Audio Components</a></div></div><div class=MEntry><div class=MFile><a href="../doc/txt/features-txt.html">NewAC Main Features List</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Main Units</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="ACS_AudioMix-pas.html">ACS_AudioMix</a></div></div><div class=MEntry><div class=MFile><a href="ACS_CDROM-pas.html">ACS_CDROM</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Classes-pas.html">ACS_Classes</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Converters-pas.html">ACS_Converters</a></div></div><div class=MEntry><div class=MFile><a href="ACS_DXAudio-pas.html">ACS_DXAudio</a></div></div><div class=MEntry><div class=MFile><a href="ACS_FLAC-pas.html">ACS_FLAC</a></div></div><div class=MEntry><div class=MFile id=MSelected>ACS_Filters</div></div><div class=MEntry><div class=MFile><a href="ACS_LAME-pas.html">ACS_LAME</a></div></div><div class=MEntry><div class=MFile><a href="ACS_MAC-pas.html">ACS_MAC</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Misc-pas.html">ACS_Misc</a></div></div><div class=MEntry><div class=MFile><a href="ACS_MPC-pas.html">ACS_MPC</a></div></div><div class=MEntry><div class=MFile><a href="ACS_OptimFROG-pas.html">ACS_OptimFROG</a></div></div><div class=MEntry><div class=MFile><a href="ACS_smpeg-pas.html">ACS_SMPEG</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Streams-pas.html">ACS_Streams</a></div></div><div class=MEntry><div class=MFile><a href="ACS_TTA-pas.html">ACS_TTA</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Tags-pas.html">ACS_Tags</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Vorbis-pas.html">ACS_Vorbis</a></div></div><div class=MEntry><div class=MFile><a href="ACS_WavPack-pas.html">ACS_WavPack</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Wave-pas.html">ACS_Wave</a></div></div><div class=MEntry><div class=MFile><a href="ACS_WinMedia-pas.html">ACS_WinMedia</a></div></div><div class=MEntry><div class=MFile><a href="ACS_AAC-pas.html">ACS_AAC</a></div></div><div class=MEntry><div class=MFile><a href="AudioDMO-pas.html">AudioDMO</a></div></div><div class=MEntry><div class=MFile><a href="AudioPass-pas.html">AudioPass</a></div></div><div class=MEntry><div class=MFile><a href="AuSampleRate-pas.html">AuSampleRate</a></div></div><div class=MEntry><div class=MFile><a href="AuASIO-pas.html">AuASIO</a></div></div><div class=MEntry><div class=MFile><a href="AuSynch-pas.html">AuSynch</a></div></div><div class=MEntry><div class=MFile><a href="NewACDTS-pas.html">NewACDTS</a></div></div><div class=MEntry><div class=MFile><a href="NewAC_AVI-pas.html">NewAC_AVI</a></div></div><div class=MEntry><div class=MFile><a href="NewAC_DSP-pas.html">NewAC_DSP</a></div></div><div class=MEntry><div class=MFile><a href="NewACAC3-pas.html">NewACAC3</a></div></div><div class=MEntry><div class=MFile><a href="NewACIndicators-pas.html">NewACIndicators</a></div></div><div class=MEntry><div class=MFile><a href="NewACDSAudio-pas.html">NewACDSAudio</a></div></div><div class=MEntry><div class=MFile><a href="ACS_AAC-pas.html">ACS_AAC</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Utility Units</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="ACS_Misc-pas.html">ACS_Misc</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Procs-pas.html">ACS_Procs</a></div></div><div class=MEntry><div class=MFile><a href="acs_reg-pas.html">ACS_Reg</a></div></div><div class=MEntry><div class=MFile><a href="ACS_Types-pas.html">ACS_Types</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Tutorials</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../demos/Tutorial/AudioProcessor/Main-pas.html">Audio Processor</a></div></div><div class=MEntry><div class=MFile><a href="../demos/Tutorial/ComponentsDemo/ComponentsDemo-pas.html">Components Demo</a></div></div><div class=MEntry><div class=MFile><a href="../demos/Recorders-rippers/Rip'n'listen/Main-pas.html">Rip&rsquo;n&rsquo;Listen Demo</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../dunit/dunit/Test_ACS_MAC-pas.html">ACS_MAC TestCases</a></div></div><div class=MEntry><div class=MFile><a href="../dunit/dunit/Test_ACS_WavPack-pas.html">ACS_WavPack TestCases</a></div></div><div class=MEntry><div class=MFile><a href="../dunit/dunit/Test_ACS_FLAC-pas.html">TestFLACEncode</a></div></div><div class=MEntry><div class=MFile><a href="../dunit/dunit/uLog-pas.html">uLog.pas</a></div></div><div class=MEntry><div class=MFile><a href="../dunit/dunit/uTestBase-pas.html">uTestBase</a></div></div><div class=MEntry><div class=MFile><a href="../dunit/dunit/uUtility-pas.html">uUtility</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Index</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Properties.html">Properties</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Types.html">Types</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Files.html">Files</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Properties">Properties</option><option value="Types">Types</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
HideAllBut([2], 6);// --></script></div><!--Menu-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>procedure GetKernel(</td><td class=PParameter nowrap>var K :</td><td class=PType nowrap>&nbsp;PSingleArray</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the pointer to the current filter kernel. </div></div><div class=CToolTip id="tt2"><div class=CClass>Descends from TAuInput, the base class for all converter components. </div></div><!--END_ND_TOOLTIPS-->




<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>